package dataDTO;

public class RecipeCompDTO 
{
	int recipeId;                  // auto genereres fra 1..n   
	int commodityId;             // i omraadet 1-99999999
	double nomNetto;            // skal vaere positiv og passende stor
	double tolorance;           // skal vaere positiv og passende stor
	
	public RecipeCompDTO(int recipeId, int commodityId, double nomNetto, double tolorance)
	{
		this.recipeId = recipeId;
		this.commodityId = commodityId;
		this.nomNetto = nomNetto;
		this.tolorance = tolorance;
	}

	public int getRecipeId() { return recipeId; }
	public void setRecipeId(int recipeId) { this.recipeId = recipeId; }
	public int getCommodityId() { return commodityId; }
	public void setCommodityId(int commodityId) { this.commodityId = commodityId; }
	public double getNomNetto() { return nomNetto; }
	public void setNomNetto(double nomNetto) { this.nomNetto = nomNetto; }
	public double getTolorance() { return tolorance; }
	public void setTolorance(double tolorance) { this.tolorance = tolorance; }
	public String toString() { 
		return recipeId + "\t" + commodityId + "\t" + nomNetto + "\t" + tolorance; 
	}
}
